<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript">
	//记录当前记录的ID
	var selectedRecordID="";

 	function resize(){
		parent.window.document.all('pageList').style.height=document.body.scrollHeight;
	}

	//当改点选表格行数据时，触发本事件
	function changeID(id){
		selectedRecordID = id;
	}
	//刷新当前页面
	function freshFrame(){
		document.forms.ec.ec_p.value=document.getElementById("ec_p").value;
		document.forms.ec.submit();
	}
</script>

</head>
<body onload="resize()">
<ec:ceTable items="businessCodeList"
	action="${ctx}/charge_businessCodeAction.do?method=list"
	var="businessCodeItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15" >
	<ec:ceRow styleClass="grid"
	 onclick="changeID(${businessCodeItem.keyword})" onContextMenu="return ShowContextMenu(event,'quick_rightmenu')" >
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.bizCode}" property="bizCode"  width="10%" styleClass="align_left" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.description}" property="description" width="33%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.debitOrCredit}" property="debitOrCreditView" width="33%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.payMethod}" property="payMethodView"  width="33%" styleClass="align_left"/>
	</ec:ceRow>
</ec:ceTable>

    <!--------------------右键显示 新增更多菜单 开始---------------------->
<div id="quick_rightmenu" style="display:none;"
	oncontextmenu="return false" class="quick_rightmenu">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	class="grid_quickMenu_bg">
	<tr>

		<td>
		<table width="100%" border="0" cellpadding="2" cellspacing="0">
		<pms:AuthTag authName="charge_businessCodeAction.do?method=initAdd">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.openNew();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="${key.add}" />&nbsp;${key.add}</a></td>
			</tr>
			</pms:AuthTag>
             <pms:AuthTag authName="charge_businessCodeAction.do?method=initEdit">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onFocus="this.blur()" onClick="parent.openEdit();"><img
					src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.modify}"/> ${key.modify}</a></td>
			</tr>
			</pms:AuthTag>
          <pms:AuthTag authName="charge_businessCodeAction.do?method=delete">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.showDelete();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.delete}"/> ${key.delete}</a></td>
			</tr>
			</pms:AuthTag>

		</table>
		</td>
	</tr>
</table>
</div>

</body>
</html>